package org.tinygroup.eventexecutemonitor.service;

import org.tinygroup.eventexecutemonitor.pojo.ServiceMonitorItem;
import org.tinygroup.tinysqldsl.Pager;

/**
 * Created by zhangliang08072 on 2016/12/23.
 */
public interface TinyServiceMonitor {
	/**
	 * 分页查询本地服务监控项
	 * @param start
	 * @param limit
	 * @return
	 */
    public Pager<ServiceMonitorItem> queryLocalServiceMonitorItemsByPage(int start, int limit );
    
    /**
     * 根据服务Id查询本地服务监控项
     * @param serviceId
     * @return
     */
    public ServiceMonitorItem queryLocalServiceMonitorItemById(String serviceId);
    
    /**
     * 分页查询远程服务监控项
     * @param start
     * @param limit
     * @return
     */
    public Pager<ServiceMonitorItem> queryRemoteServiceMonitorItemsByPage(int start, int limit);
    
    /**
     * 根据服务Id查询远程服务监控项
     * @param serviceId
     * @return
     */
    public ServiceMonitorItem queryRemoteServiceMonitorItemById(String serviceId);
}
